﻿using SD.Infrastructure.RepositoryBase;
using System;
using System.Collections.Generic;
using SlamDunk.MES.Domain.Entities.ResourceContext;

namespace SlamDunk.MES.Domain.IRepositories.Interfaces.ResourceContext
{
    /// <summary>
    /// 设备类仓储接口
    /// </summary>
    public interface IEquipmentClassRepository : IAggRootRepository<EquipmentClass>
    {
        #region # 完整获取设备类 —— EquipmentClass SingleFully(Guid classId)
        /// <summary>
        /// 完整获取设备类
        /// </summary>
        /// <param name="classId">设备类Id</param>
        /// <returns>设备类</returns>
        EquipmentClass SingleFully(Guid classId);
        #endregion

        #region # 深度获取设备类列表 —— ICollection<EquipmentClass> FindDeeply(string keywords...
        /// <summary>
        /// 深度获取设备类列表
        /// </summary>
        /// <param name="keywords">关键字</param>
        /// <param name="parentNodeId">上级节点Id</param>
        /// <param name="facilityIds">工厂模型Id集</param>
        /// <returns>设备类列表</returns>
        ICollection<EquipmentClass> FindDeeply(string keywords, Guid? parentNodeId, IList<Guid> facilityIds);
        #endregion

        #region # 获取根级设备类列表 —— ICollection<EquipmentClass> FindRoots()
        /// <summary>
        /// 获取根级设备类列表
        /// </summary>
        /// <returns>设备类列表</returns>
        ICollection<EquipmentClass> FindRoots();
        #endregion
    }
}
